CC		=	gcc
CFLAGS	=	-I ../../allegro/allegro5/include
LIBS    =   ../../allegro/allegro5/lib/*.a -lm -lpthread -lX11 -lXcursor -lXcursor -ldl -lGL
OBJS	=	main.o init.o run.o global.o
d2im: main.o init.o run.o global.o
	$(CC) $(OBJS) $(LIBS) -o ../bin/d2im
main:main.c
	$(CC) main.c -c $(CFLAGS)
init:init.c
	$(CC) init.c -c $(CFLAGS)
run:run.c
	$(CC) run.c -c $(CFLAGS)
global:global.c
	$(CC) global.c -c $(CFLAGS)
test:
	cd ../bin && ./d2im
clean:
	rm ../bin/d2im *.o -f
